﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="ViewLocations.aspx.cs" Inherits="Admin_ViewLocations"
    MasterPageFile="~/Admin/AdminMasterPage.master" %>
<asp:Content ID="Content2" ContentPlaceHolderID="pnlMain" runat="Server">
    <br />
    <a href="addEditLocation.aspx">Add New Location</a><br />
    <p class="h2">
        Manage Location List</p>
    <div id="divError" runat="server">
    </div>
    <div class="divGrid">
        <asp:GridView ID="gvLocation" runat="server" AutoGenerateColumns="False" EmptyDataText="No Record Found"
            DataKeyNames="LocationID"
            OnRowDataBound="gvLocation_RowDataBound">
            <Columns>
                <asp:BoundField DataField="LocationName" HeaderText="Location Name" />
                <asp:BoundField DataField="LocationCode" HeaderText="Location Code" />
                <asp:BoundField DataField="RegionID" HeaderText="Region" />
                <asp:BoundField DataField="Active" HeaderText="Active" />
                <asp:HyperLinkField DataNavigateUrlFields="LocationID" DataNavigateUrlFormatString="addEditLocation.aspx?id={0}"
                    Text="Edit" ItemStyle-Width="30" />
            </Columns>
        </asp:GridView>
    </div>
</asp:Content>
